package be.jaisy.osgi.console.service.api;

import java.util.Collection;

import be.jaisy.osgi.console.service.api.to.BundleTo;

import com.google.gwt.user.client.rpc.RemoteService;

public interface IBundleManagementService extends RemoteService{

	/**
	 * @gwt.typeArgs <be.jaisy.osgi.console.service.api.to.BundleTo>
	 */
	Collection listBundle();

	BundleTo getBundle(long bundleId);
	
	BundleTo startBundle(long bundleId);
	
	BundleTo stopBundle(long bundleId);
	
	BundleTo updateBundle(long bundleId);
	
	void installBundle(String location);
	
	BundleTo uninstallBundle(long bundleId);
	
	/**
	 * @gwt.typeArgs <be.jaisy.osgi.console.service.api.to.OsgiServiceTo>
	 */
	Collection listRegisteredServices(long bundleId);
}
